<template>
    <div class="HomeModuleMoreTop">
        <div class="HomeModuleMoreTopLeft">
            <img class="HomeModuleMoreImg" :src="src" alt="">
            <div class="HomeModuleMoreTitle">{{ title }}</div>
        </div>
        <div style="gap: 26px; display: flex;">
            <slot name="table"></slot>
        </div>
        <div class="HomeModuleMoreTopRight" @click="emit('more-click')">更多信息>></div>
    </div>
    <div class="HomeModuleMoreLsit">
        <slot name="nr"></slot>
    </div>
</template>
<script setup>
import { ref } from 'vue'
defineProps({
    title: {
        type: String,
        default: '默认标题'
    },
    src: {
        type: String,
        default: '/src/assets/logo.png'
    }
})
const emit = defineEmits(['more-click'])
</script>
<style scoped lang="scss">
.HomeModuleMoreTop {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .HomeModuleMoreTopLeft {
        display: flex;
        align-items: center;

        .HomeModuleMoreImg {
            width: 48px;
            height: 48px;
        }

        .HomeModuleMoreTitle {
            margin-left: 10px;
            font-weight: bold;
            font-size: 30px;
            color: #1F1F1F;
        }
    }

    .HomeModuleMoreTopRight {
        font-size: 12px;
        color: $button-color;
        padding: 8px 20px;
        border-radius: 20px;
        border: 1px solid $button-color;
        cursor: pointer;
    }
}

.HomeModuleMoreLsit {
    margin-top: 30px;
}
</style>